﻿using LJX.SmartPark.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJX.SmartPark.Domain.Area
{
    /// <summary>
    /// 车辆管理
    /// </summary>
    [Table("Car")]
    public class Car:KeyEntity
    {
        /// <summary>
        /// 厂牌型号
        /// </summary>
        [MaxLength(30)]
        public string BrandModel { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        [MaxLength(30)]
        public string CarNum { get; set; }

        /// <summary>
        /// 司机姓名
        /// </summary>
        [MaxLength(20)]
        public string DriverName { get; set; }

        /// <summary>
        /// 所属公司
        /// </summary>
        [MaxLength(30)]
        public string Company { get; set; }

        /// <summary>
        /// 车型（长*宽*高）
        /// </summary>
        [MaxLength(20)]
        public string VehicleType { get; set; }

        /// <summary>
        /// 车辆颜色
        /// </summary>
        [MaxLength(10)]
        public string CarColor { get; set; }

        /// <summary>
        /// 购置日期
        /// </summary>
        public DateTime PayDate { get; set; }

        /// <summary>
        /// 营运证号
        /// </summary>
        [MaxLength(20)]
        public string OperationNum { get; set; }

        /// <summary>
        /// 保险到期时间
        /// </summary>
        public DateTime InsuranceExpireTime { get; set; }

        /// <summary>
        /// 年检到期时间
        /// </summary>
        public DateTime CheckDueTime { get; set; }

        /// <summary>
        /// 保养公里设置
        /// </summary>
        public int MaintenanceNum { get; set; }
        
        /// <summary>
        /// 车辆照片
        /// </summary>
        public string? VehiclePhotos { get; set; }

        /// <summary>
        /// 保险卡照片
        /// </summary>
        public string? InsuranceCardHhoto { get; set; }
    }
}
